package com.group.transaction.controller;

import com.group.transaction.aspect.InMethod;
import com.group.transaction.domain.IntegralLog;
import com.group.transaction.model.ResultJson;
import com.group.transaction.service.integralLog.IntegralLogService;
import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Data
@RequestMapping("/integralLog")
public class IntegralLogController {

    @Resource
    private IntegralLogService integralLogSevice;

    /**
     * 查询客户积分日志
     * @param
     * @return
     */
    @GetMapping("/queryIntegralLogByUserId")
    @InMethod(apiName = "查询客户积分日志")
    public ResultJson queryIntegralLogByUserId (IntegralLog integralLog) {
        return integralLogSevice.queryIntegralLogByUserId(integralLog);
    }
    /**
     * 查询客户积分日志
     * @param
     * @return
     */
    @GetMapping("/queryIntegralLogAllData")
    @InMethod(apiName = "查询所有用户积分日志")
    public ResultJson queryIntegralLogAllData (IntegralLog integralLog) {
        return integralLogSevice.queryIntegralLogAllData(integralLog);
    }

}
